package vista;
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.SwingUtilities;
import javax.swing.table.AbstractTableModel;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaRecordAvanzado extends javax.swing.JDialog {
	private JPanel jPanelRecordAvanzado;
	private JLabel jLabelRecordAvanzado;
	private JScrollPane jScrollPaneRecordAvanzado;
	private JTable tblAvanzado;

	/**
	* Auto-generated main method to display this JDialog
	*/
		
	public VistaRecordAvanzado() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			{
				jPanelRecordAvanzado = new JPanel();
				getContentPane().add(jPanelRecordAvanzado, BorderLayout.CENTER);
				jPanelRecordAvanzado.setLayout(null);
				{
					jLabelRecordAvanzado = new JLabel();
					jPanelRecordAvanzado.add(jLabelRecordAvanzado);
					jLabelRecordAvanzado.setText("Record de Partidas Avanzadas");
					jLabelRecordAvanzado.setBounds(32, 28, 318, 31);
					jLabelRecordAvanzado.setFont(new java.awt.Font("Segoe UI",0,16));
				}
				{
					jScrollPaneRecordAvanzado = new JScrollPane();
					jPanelRecordAvanzado.add(jScrollPaneRecordAvanzado);
					jScrollPaneRecordAvanzado.setBounds(32, 78, 318, 164);
					{
						tblAvanzado = new JTable();
						jScrollPaneRecordAvanzado.setViewportView(tblAvanzado);
					}
				}
			}
			this.setSize(537, 400);
			this.setLocation(250,250);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void setResultados(AbstractTableModel abstractTableModel) {
		tblAvanzado.setModel(abstractTableModel);
	}
}
